package com.qf.mapper;

import com.qf.entity.User;
import com.qf.entity.UserDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface UserMapper {
    User login(User user);

    List<User> list(UserDTO userDTO);

    void deleteById(int id);

    void deleteAll(List<Integer> id);

    void addUser(User user);

    void updateUser(User user);

    User selectByUsername(String username);

    Set<String> selectAuthById(int id);
}
